package com.yugao.fintech.libra.workflow.service;

import com.yugao.fintech.libra.workflow.domain.FlowDefRelation;
import com.yugao.fintech.libra.workflow.domain.FlowTaskRelation;
import com.yugao.fintech.libra.workflow.domain.dto.FlowProcDefDto;

import java.util.List;

/**
 * @author muyang
 * @date 2022/6/27 21:00
 */
public interface IFlowRelationService {

    List<FlowProcDefDto> defList(String name, String category);

    FlowProcDefDto queryDefByProcDefId(String procDefId);

    int addDef(FlowDefRelation flowDefRelation);

    FlowDefRelation queryDefByCategory(String category);

    int editDefStatusByDeployId(String deployId, Integer status);

    int addTask(FlowTaskRelation flowTaskRelation);

    int removeDefByDeployId(String deployId);

    FlowTaskRelation queryTaskByProcInsId(String procInsId);

}
